package com.bah.tract.client.ui;

import java.io.Serializable;
import java.util.Comparator;

public class TimeCardRowSorter implements Comparator<TimeCardRow>, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1746525545768906737L;

	@Override
	public final int compare(final TimeCardRow o1, final TimeCardRow o2) {
		int retval = o1.getStart().compareTo(o2.getStart());
		if (retval == 0) {
			retval = -1;
		}
		return retval;
	}

}
